package com.the4man.framework.generate;

/**
 * Created by lenovo on 2017/12/12.
 */
public class FieldBean {
    private String name;
    private String type;
    private String descInfo;

    public FieldBean() {
    }

    public String toString() {
        StringBuffer buff = new StringBuffer();
        buff.append("    /**\n");
        buff.append("     * " + this.descInfo + "\n");
        buff.append("     */\n");
        buff.append("    private " + FieldTypeUtil.fieldMap.get(this.type) + " " + this.name + ";");
        return buff.toString();
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescInfo() {
        return this.descInfo;
    }

    public void setDescInfo(String descInfo) {
        this.descInfo = descInfo;
    }
}
